package com.ydj.schedule.example;

import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class Schedule02 {
    @Async
    @Scheduled(cron = "30/10 30-59 * * * ?")
    public void example1() {
        System.out.println("30-59分钟，30秒开始，每隔10秒执行一次 ");
    }
}
